package com.lzx.service.impl;

import com.lzx.mapper.IndexMapper;
import com.lzx.model.index.GrainSales;
import com.lzx.model.index.GrainYield;
import com.lzx.model.index.PlantArea;
import com.lzx.model.index.PlantType;
import com.lzx.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("indexService")
public class IndexServiceImpl implements IndexService {
    @Autowired
    IndexMapper indexMapper;

    @Override
    public List<PlantArea> findPlaneArea() throws SQLException {
        return indexMapper.findPlaneArea();
    }

    @Override
    public List<PlantType> findPlantType() throws SQLException {
        return indexMapper.findPlantType();
    }

    @Override
    public List<GrainYield> findGrainYield() throws SQLException {
        return indexMapper.findGrainYield();
    }

    @Override
    public List<GrainSales> findGrainSales() throws SQLException {
        return indexMapper.findGrainSales();
    }
}
